import axios from 'axios'

export default {
    datauser(){
        return axios({
            method:"get",
            url: "/datauser?timetamp=" + new Date().getTime()
        })
    },
    deluser(data){
        return axios({
            method:"post",
            url: "/deluser?timetamp=" + new Date().getTime(),
            data:{id:data}
        })
    },
    edituser(values,time){
        return axios({
            method:"post",
            url: "/edituser?timetamp=" + new Date().getTime(),
            params:{
                user:values,
                createTime:time,
            }
        })
    },
    reqDeleteImg(data){
        return axios({
            method:"post",
            url: "/manage/img/delete?timetamp=" + new Date().getTime(),
            data:{name:data}
        })
    }
}